import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
	name: 'fetch',
})
export class FetchPipe implements PipeTransform {
	transform(url: string) {
		return fetch(url).then(resp => resp.text());
	}
}
